namespace KTD.Web.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class 新增验证码表 : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.SysVerifyCodes",
                c => new
                    {
                        Id = c.Int(nullable: false, identity: true),
                        Mobile = c.String(),
                        GenerateVerifyCodeType = c.Int(nullable: false),
                        VerifyCode = c.String(),
                        IsUsed = c.Boolean(nullable: false),
                        SMSContent = c.String(),
                        ExpiredDateTime = c.DateTime(nullable: false),
                        EffectiveMinite = c.Int(nullable: false),
                        RowVersion = c.Binary(nullable: false, fixedLength: true, timestamp: true, storeType: "rowversion"),
                        CreateDateTime = c.DateTime(nullable: false),
                        Creator = c.String(),
                        UpdateDateTime = c.DateTime(),
                        Updater = c.String(),
                        Data = c.String(),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.SysVerifyCodes");
        }
    }
}
